package nl.fonfolio.controller {
	import nl.fonfolio.model.Model;	
	
	/**
	 * @author Niels
	 */
	public class Controller {
		private var model:Model;
		
		public function Controller(model:Model) {
			this.model = model;
		}

		public function loadPortfolioHandler(id:Number):void {
			this.model.loadPortfolio(id);
		}
		
		public function loadProfileProjectHandler(id:Number):void {
			this.model.loadProfileProject(id);
		}
		
		public function loadProjectHandler(id:Number):void {
			this.model.loadProject(id);
		}

		public function doLoginHandler(objLogin:Object):void {
			//id:Number
			//trace(objLogin.email);
			this.model.doLogin(objLogin);
		}
		

		
		public function openFullscreenHandler() : void {
			this.model.openFullscreen();
		}
		
		public function insertVotes(objRating:Object) : void {
			this.model.doInsertVotes(objRating);
		}
	}
}
